//
//  HJDDateilsViewController.m
//  JYHospital
//
//  Created by 胡金东 on 16/5/22.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "HJDDateilsViewController.h"
#import "BSMacros.h"
#import "AFNetworking.h"
#import "MJExtension.h"

#import "HJDBloodViewController.h"
#import "HJDNiaoViewController.h"
#import "HJDGanViewController.h"
#import "HJDYinDaoViewController.h"
#import "HJDYiganViewController.h"
#import "HJDChuanRanViewController.h"
#import "HJDBChaoViewController.h"

@interface HJDDateilsViewController ()<UIScrollViewDelegate>

@property (nonatomic,strong) UILabel *titleLbl;
@property (nonatomic,strong) UIScrollView * scrollView;

#define  W 375

#define  H 567

#define  WM IS_IPHONE_6?20:IS_IPHONE_6_PLUS?39:20

@end

@implementation HJDDateilsViewController


-(void)viewWillAppear:(BOOL)animated
{
    [super  viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
   self.title = @"孕期档案表";
    [self.navigationController.navigationBar setTitleTextAttributes:
     @{NSFontAttributeName:[UIFont systemFontOfSize:19],
       NSForegroundColorAttributeName:[UIColor getColorWithHexNumber:@"848484"]}];

    
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(shareBtnClick) image:@"矢量智能对象" HighImage:nil];
//    CGFloat WW = IS_IPHONE_6?375:IS_IPHONE_6_PLUS?414:375;
    self.scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, IS_IPHONE_6?375:IS_IPHONE_6_PLUS?414:375, HJDHeight)];
    self.scrollView.delegate = self;
    self.automaticallyAdjustsScrollViewInsets = YES;
    self.scrollView.showsHorizontalScrollIndicator = YES;
    self.scrollView.showsVerticalScrollIndicator = NO;
    self.scrollView.contentSize = CGSizeMake(450, 2000);
    [self.view addSubview:self.scrollView];
    
    NSString *url = @"/app/caseEdit.do";
    NSString *path = [Hurl stringByAppendingString:url];
    AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager];
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    params[@"id"]= self.fileModel.id;
    [mgr POST:path parameters:params progress:^(NSProgress * _Nonnull uploadProgress) {
        
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"response%@",responseObject);
        NSDictionary *info = (NSDictionary *)responseObject;
        NSString *detail = info[@"resultMap"];
        self.detailModel = [HJDDetailModel mj_objectWithKeyValues:detail];
          [self setUpTable];
        
        
        
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        [MBProgressHUD showError:@"服务器升级，请稍后再试"];
//        NSLog(@"%@",error);
    }];
    
    
    
    
    [self setUpTitle];
    
//    [self setUpTable];
}

-(void)setUpTitle
{

    
    self.titleLbl= [[UILabel alloc]init];
    NSUserDefaults *defa = [NSUserDefaults standardUserDefaults];
    NSString *str = [defa objectForKey:@"countSum"];
    self.titleLbl.text = [NSString stringWithFormat:@"第%@产检随访服务记录表",str];
    
    self.titleLbl.font = [UIFont boldSystemFontOfSize:15];
    CGSize LbltSize = [self.titleLbl.text sizeWithAttributes:[NSDictionary dictionaryWithObjectsAndKeys:self.titleLbl.font,NSFontAttributeName, nil]];
    CGFloat LbltX = W/2 - LbltSize.width/2;
    CGFloat LbltY = WM;
    
   self.titleLbl.frame = (CGRect){{LbltX,LbltY},LbltSize};
    [self.scrollView addSubview:self.titleLbl];
    
   
    
   
   }

-(void)setUpTable
{
//    名字上的横线
    CGFloat nameVMX = WM;
    CGFloat nameVMY = CGRectGetMaxY(self.titleLbl.frame) + 15;
    CGFloat nameVMW = W - HJDHorizontalMargin * 2 ;
    CGFloat nameVMH = 1;
    UIView * nameVM = [[UIView alloc]initWithFrame:CGRectMake(nameVMX, nameVMY, nameVMW, nameVMH)];
    nameVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:nameVM];
//    长左1竖线
    CGFloat VerLineLX = WM ;
    CGFloat VerLineLY = nameVMY;
    CGFloat VerLineLW = 1;
    CGFloat VerLineLH = H * 3 + 238;
    UIView * VerLineL = [[UIView alloc]initWithFrame:CGRectMake(VerLineLX, VerLineLY, VerLineLW, VerLineLH)];
    VerLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:VerLineL];
//    右竖线
    CGFloat VerLineRX = CGRectGetMaxX(nameVM.frame) ;
    CGFloat VerLineRY = nameVMY;
    CGFloat VerLineRW = 1;
    CGFloat VerLineRH = H * 3 + 238;
    UIView * VerLineR = [[UIView alloc]initWithFrame:CGRectMake(VerLineRX, VerLineRY, VerLineRW, VerLineRH)];
    VerLineR.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:VerLineR];
//    姓名
    CGFloat nameLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat nameLblY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat nameLblW = 60;
    CGFloat nameLblH = 20;
    UILabel *nameLbl = [[UILabel alloc]initWithFrame:CGRectMake(nameLblX, nameLblY, nameLblW, nameLblH)];
    nameLbl.text = @"姓名";
    nameLbl.font = [UIFont systemFontOfSize:15];
    nameLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:nameLbl];
//  长左2竖线
    CGFloat LineLX = CGRectGetMaxX(nameLbl.frame) + 8 ;
    CGFloat LineLY = nameVMY;
    CGFloat LineLW = 1;
    CGFloat LineLH = H * 3 + 187;
    UIView * LineL = [[UIView alloc]initWithFrame:CGRectMake(LineLX, LineLY, LineLW, LineLH)];
    LineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineL];
//   姓名内容
    CGFloat nameConX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat nameConY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat nameConW = 80;
    CGFloat nameConH = 20;
    UILabel *nameCon = [[UILabel alloc]initWithFrame:CGRectMake(nameConX, nameConY, nameConW, nameConH)];
//    nameCon.text = @"纳兰云泽胡";
    nameCon.text = self.detailModel.name;
    nameCon.font = [UIFont systemFontOfSize:15];
    nameCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:nameCon];
//  年龄前的竖线
    CGFloat LineL1X = CGRectGetMaxX(nameCon.frame) + 5;
    CGFloat LineL1Y = nameVMY;
    CGFloat LineL1W = 1;
    CGFloat LineL1H = 15 * 2 + nameLblH + 2;
    UIView * LineL1 = [[UIView alloc]initWithFrame:CGRectMake(LineL1X, LineL1Y, LineL1W, LineL1H)];
    LineL1.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineL1];
//    年龄
    CGFloat ageLblX = CGRectGetMaxX(LineL1.frame) + 8 ;
    CGFloat ageLblY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat ageLblW = 30;
    CGFloat ageLblH = 20;
    UILabel *ageLbl = [[UILabel alloc]initWithFrame:CGRectMake(ageLblX, ageLblY, ageLblW, ageLblH)];
    ageLbl.text = @"年龄";
    ageLbl.font = [UIFont systemFontOfSize:15];
    ageLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:ageLbl];
//    年龄内容前的竖线
    CGFloat LineL2X = CGRectGetMaxX(ageLbl.frame) + 8;
    CGFloat LineL2Y = nameVMY;
    CGFloat LineL2W = 1;
    CGFloat LineL2H = 15 * 2 + nameLblH + 2;
    UIView * LineL2 = [[UIView alloc]initWithFrame:CGRectMake(LineL2X, LineL2Y, LineL2W, LineL2H)];
    LineL2.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineL2];
    
    CGFloat ageConX = CGRectGetMaxX(LineL2.frame) + 8 ;
    CGFloat ageConY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat ageConW = 28;
    CGFloat ageConH = 20;
    UILabel *ageCon = [[UILabel alloc]initWithFrame:CGRectMake(ageConX, ageConY, ageConW, ageConH)];
    ageCon.text = [NSString stringWithFormat:@"%d",self.detailModel.age];
    ageCon.font = [UIFont systemFontOfSize:15];
    ageCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:ageCon];
    //    孕周前的竖线
    CGFloat LineL3X = CGRectGetMaxX(ageCon.frame) + 1;
    CGFloat LineL3Y = nameVMY;
    CGFloat LineL3W = 1;
    CGFloat LineL3H = 15 * 2 + nameLblH + 2;
    UIView * LineL3 = [[UIView alloc]initWithFrame:CGRectMake(LineL3X, LineL3Y, LineL3W, LineL3H)];
    LineL3.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineL3];
//    孕周
    CGFloat weekLblX = CGRectGetMaxX(LineL3.frame) + 8 ;
    CGFloat weekLblY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat weekLblW = 30;
    CGFloat weekLblH = 20;
    UILabel *weekLbl = [[UILabel alloc]initWithFrame:CGRectMake(weekLblX, weekLblY, weekLblW, weekLblH)];
    weekLbl.text = @"孕周";
    weekLbl.font = [UIFont systemFontOfSize:15];
    weekLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weekLbl];
    //    孕周内容前的竖线
    CGFloat LineL4X = CGRectGetMaxX(weekLbl.frame) + 8;
    CGFloat LineL4Y = nameVMY;
    CGFloat LineL4W = 1;
    CGFloat LineL4H = 15 * 2 + nameLblH + 2;
    UIView * LineL4 = [[UIView alloc]initWithFrame:CGRectMake(LineL4X, LineL4Y, LineL4W, LineL4H)];
    LineL4.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineL4];
    
    CGFloat weekConX = CGRectGetMaxX(LineL4.frame) + 8 ;
    CGFloat weekConY = CGRectGetMaxY(nameVM.frame) + 15;
    CGFloat weekConW = 28;
    CGFloat weekConH = 20;
    UILabel *weekCon = [[UILabel alloc]initWithFrame:CGRectMake(weekConX, weekConY, weekConW, weekConH)];
    weekCon.text = [NSString stringWithFormat:@"%d",self.detailModel.yunWeeks];
    weekCon.font = [UIFont systemFontOfSize:15];
    weekCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:weekCon];
    
//    手机号上横线
    CGFloat phoneVMX = WM ;
    CGFloat phoneVMY = CGRectGetMaxY(nameLbl.frame) + 15;
    CGFloat phoneVMW = W - HJDHorizontalMargin * 2 ;
    CGFloat phoneVMH = 1;
    UIView * phoneVM = [[UIView alloc]initWithFrame:CGRectMake(phoneVMX, phoneVMY, phoneVMW, phoneVMH)];
    phoneVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:phoneVM];
//    手机号
    CGFloat phoneLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat phoneLblY = CGRectGetMaxY(phoneVM.frame) + 15;
    CGFloat phoneLblW = 60;
    CGFloat phoneLblH = 20;
    UILabel *phoneLbl = [[UILabel alloc]initWithFrame:CGRectMake(phoneLblX, phoneLblY, phoneLblW, phoneLblH)];
    phoneLbl.text = @"手机号码";
    phoneLbl.font = [UIFont systemFontOfSize:15];
    phoneLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:phoneLbl];
//    手机号内容
    CGFloat phoneConX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat phoneConY = phoneLblY;
    CGFloat phoneConW = W - HJDHorizontalMargin * 2 -80;
    CGFloat phoneConH = 20;
    UILabel *phoneCon = [[UILabel alloc]initWithFrame:CGRectMake(phoneConX, phoneConY, phoneConW, phoneConH)];
    phoneCon.text = self.detailModel.phone;
    phoneCon.font = [UIFont systemFontOfSize:15];
    phoneCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:phoneCon];
    
    //    身份证上横线
    CGFloat identityVMX = WM ;
    CGFloat identityVMY = CGRectGetMaxY(phoneLbl.frame) + 15;
    CGFloat identityVMW = W - HJDHorizontalMargin * 2;
    CGFloat identityVMH = 1;
    UIView * identityVM = [[UIView alloc]initWithFrame:CGRectMake(identityVMX, identityVMY, identityVMW, identityVMH)];
    identityVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:identityVM];
//    身份证
    CGFloat identityLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat identityLblY = CGRectGetMaxY(identityVM.frame) + 15;
    CGFloat identityLblW = 60;
    CGFloat identityLblH = 20;
    UILabel *identityLbl = [[UILabel alloc]initWithFrame:CGRectMake(identityLblX, identityLblY, identityLblW, identityLblH)];
    identityLbl.text = @"身份证号";
    identityLbl.font = [UIFont systemFontOfSize:15];
    identityLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:identityLbl];
    //    身份证内容
    CGFloat identityConX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat identityConY = identityLblY;
    CGFloat identityConW = phoneConW;
    CGFloat identityConH = 20;
    UILabel *identityCon = [[UILabel alloc]initWithFrame:CGRectMake(identityConX, identityConY, identityConW, identityConH)];
    identityCon.text = self.detailModel.cardsId;
    identityCon.font = [UIFont systemFontOfSize:15];
    identityCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:identityCon];
//    丈夫上横线
    CGFloat husbandVMX = WM ;
    CGFloat husbandVMY = CGRectGetMaxY(identityCon.frame) + 15;
    CGFloat husbandVMW = W - HJDHorizontalMargin * 2;
    CGFloat husbandVMH = 1;
    UIView * husbandVM = [[UIView alloc]initWithFrame:CGRectMake(husbandVMX, husbandVMY, husbandVMW, husbandVMH)];
    husbandVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:husbandVM];
//    丈夫名字
    CGFloat husbandLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat husbandLblY = CGRectGetMaxY(husbandVM.frame) + 15;
    CGFloat husbandLblW = 60;
    CGFloat husbandLblH = 20;
    UILabel *husbandLbl = [[UILabel alloc]initWithFrame:CGRectMake(husbandLblX, husbandLblY, husbandLblW, husbandLblH)];
    husbandLbl.text = @"亲友姓名";
    husbandLbl.font = [UIFont systemFontOfSize:15];
    husbandLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:husbandLbl];
    //    丈夫内容
    CGFloat husbandConX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat husbandConY = husbandLblY;
    CGFloat husbandConW = 80;
    CGFloat husbandConH = 20;
    UILabel *husbandCon = [[UILabel alloc]initWithFrame:CGRectMake(husbandConX, husbandConY, husbandConW, husbandConH)];
    husbandCon.text = self.detailModel.familyName;
    husbandCon.font = [UIFont systemFontOfSize:15];
    husbandCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:husbandCon];
//    丈夫年龄前竖线
    CGFloat LineLHusX = CGRectGetMaxX(husbandCon.frame) + 8;
    CGFloat LineLHusY = husbandVMY;
    CGFloat LineLHusW = 1;
    CGFloat LineLHusH = 15 * 2 + nameLblH + 2;
    UIView * LineHus = [[UIView alloc]initWithFrame:CGRectMake(LineLHusX, LineLHusY, LineLHusW, LineLHusH)];
    LineHus.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:LineHus];
    //    丈夫年龄
    CGFloat ageLblHusX = CGRectGetMaxX(LineHus.frame) + 8 ;
    CGFloat ageLblHusY = husbandLblY;
    CGFloat ageLblHusW = 30;
    CGFloat ageLblHusH = 20;
    UILabel *ageLblHus = [[UILabel alloc]initWithFrame:CGRectMake(ageLblHusX, ageLblHusY, ageLblHusW, ageLblHusH)];
    ageLblHus.text = @"年龄";
    ageLblHus.textAlignment = NSTextAlignmentCenter;
    ageLblHus.font = [UIFont systemFontOfSize:15];
    ageLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:ageLblHus];

    //    丈夫年龄内容前的竖线
    CGFloat ageLineLHusX = LineL3X;
    CGFloat ageLineLHusY = husbandVMY;
    CGFloat ageLineLHusW = 1;
    CGFloat ageLineLHusH = 15 * 2 + nameLblH + 2;
    UIView * ageLineLHus = [[UIView alloc]initWithFrame:CGRectMake(ageLineLHusX,ageLineLHusY, ageLineLHusW, ageLineLHusH)];
    ageLineLHus.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:ageLineLHus];
//    丈夫年龄内容
    CGFloat ageConHusX = CGRectGetMaxX(ageLineLHus.frame) + 8 ;
    CGFloat ageConHusY = husbandLblY;
    CGFloat ageConHusW = 28;
    CGFloat ageConHusH = 20;
    UILabel *ageConHus = [[UILabel alloc]initWithFrame:CGRectMake(ageConHusX, ageConHusY, ageConHusW, ageConHusH)];
    ageConHus.text = [NSString stringWithFormat:@"%d",self.detailModel.familyAge];
    ageConHus.textAlignment = NSTextAlignmentCenter;
    ageConHus.font = [UIFont systemFontOfSize:15];
    ageConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:ageConHus];
    
    //    身份证上横线
    CGFloat identityHusVMX = WM ;
    CGFloat identityHusVMY = CGRectGetMaxY(husbandLbl.frame) + 15;
    CGFloat identityHusVMW = W - HJDHorizontalMargin * 2;
    CGFloat identityHusVMH = 1;
    UIView * identityHusVM = [[UIView alloc]initWithFrame:CGRectMake(identityHusVMX, identityHusVMY, identityHusVMW, identityHusVMH)];
    identityHusVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:identityHusVM];

    //    丈夫身份证
    CGFloat identityLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat identityLblHusY = CGRectGetMaxY(identityHusVM.frame) + 15;
    CGFloat identityLblHusW = 60;
    CGFloat identityLblHusH = 20;
    UILabel *identityLblHus = [[UILabel alloc]initWithFrame:CGRectMake(identityLblHusX, identityLblHusY, identityLblHusW, identityLblHusH)];
    identityLblHus.text = @"身份证号";
    identityLblHus.font = [UIFont systemFontOfSize:15];
    identityLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:identityLblHus];
    //    丈夫身份号内容
    CGFloat identityConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat identityConHusY = identityLblHusY;
    CGFloat identityConHusW = phoneConW;
    CGFloat identityConHusH = 20;
    UILabel *identityConHus = [[UILabel alloc]initWithFrame:CGRectMake(identityConHusX, identityConHusY, identityConHusW, identityConHusH)];
    identityConHus.text = self.detailModel.familyCardsId;
    identityConHus.font = [UIFont systemFontOfSize:15];
    identityConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:identityConHus];

    //    分娩上的横线
    CGFloat deliveryVMX = WM ;
    CGFloat deliveryVMY = CGRectGetMaxY(identityLblHus.frame) + 15;
    CGFloat deliveryVMW = W - HJDHorizontalMargin * 2;
    CGFloat deliveryVMH = 1;
    UIView * deliveryVM = [[UIView alloc]initWithFrame:CGRectMake(deliveryVMX, deliveryVMY, deliveryVMW, deliveryVMH)];
    deliveryVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:deliveryVM];
    //    分娩
    CGFloat deliveryLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat deliveryLblY = CGRectGetMaxY(deliveryVM.frame) + 15;
    CGFloat deliveryLblW = 60;
    CGFloat deliveryLblH = 20;
    UILabel *deliveryLbl = [[UILabel alloc]initWithFrame:CGRectMake(deliveryLblX, deliveryLblY, deliveryLblW, deliveryLblH)];
    deliveryLbl.text = @"阴道分娩";
    deliveryLbl.font = [UIFont systemFontOfSize:15];
    deliveryLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:deliveryLbl];
    //   分娩内容
    CGFloat deliveryConX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat deliveryConY = deliveryLblY;
    CGFloat deliveryConW = 80;
    CGFloat deliveryConH = 20;
    UILabel *deliveryCon = [[UILabel alloc]initWithFrame:CGRectMake(deliveryConX, deliveryConY, deliveryConW, deliveryConH)];
    deliveryCon.text = self.detailModel.yindaofenmian;
    deliveryCon.font = [UIFont systemFontOfSize:15];
    deliveryCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:deliveryCon];
    //    孕次内容前的竖线
    CGFloat deliveryLineLX = CGRectGetMaxX(nameCon.frame) + 8;
    CGFloat deliveryLineLY = deliveryVMY;
    CGFloat deliveryLineLW = 1;
    CGFloat deliveryLineLH = (15 * 2 + nameLblH + 2)*2;
    UIView * deliveryLineL = [[UIView alloc]initWithFrame:CGRectMake(deliveryLineLX, deliveryLineLY, deliveryLineLW, deliveryLineLH)];
    deliveryLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:deliveryLineL];
    //    孕次
    CGFloat pregnancyLblX = CGRectGetMaxX(deliveryLineL.frame) + 8 ;
    CGFloat pregnancyLblY = deliveryLblY;
    CGFloat pregnancyLblW = 30;
    CGFloat pregnancyLblH = 20;
    UILabel *pregnancyLbl = [[UILabel alloc]initWithFrame:CGRectMake(pregnancyLblX, pregnancyLblY, pregnancyLblW, pregnancyLblH)];
    pregnancyLbl.text = @"孕次";
    pregnancyLbl.font = [UIFont systemFontOfSize:15];
    pregnancyLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:pregnancyLbl];
    //    孕次内容前的竖线
    CGFloat pregnancyLineLX = CGRectGetMaxX(pregnancyLbl.frame) + 8;
    CGFloat pregnancyLineLY = deliveryVMY;
    CGFloat pregnancyLineLW = 1;
    CGFloat pregnancyLineLH = 15 * 2 + nameLblH + 2;
    UIView * pregnancyLineL = [[UIView alloc]initWithFrame:CGRectMake(pregnancyLineLX, pregnancyLineLY, pregnancyLineLW, pregnancyLineLH)];
    pregnancyLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:pregnancyLineL];
   //    孕次内容
    CGFloat pregnancyConX = CGRectGetMaxX(pregnancyLineL.frame) + 8 ;
    CGFloat pregnancyConY = deliveryLblY;
    CGFloat pregnancyConW = 28;
    CGFloat pregnancyConH = 20;
    UILabel *pregnancyCon = [[UILabel alloc]initWithFrame:CGRectMake(pregnancyConX, pregnancyConY, pregnancyConW, pregnancyConH)];
    pregnancyCon.text = self.detailModel.gravidity;
    pregnancyCon.font = [UIFont systemFontOfSize:15];
    pregnancyCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:pregnancyCon];
    //    产次前的竖线
    CGFloat antenatalLineLX = CGRectGetMaxX(ageCon.frame) + 1;
    CGFloat antenatalLineLY = deliveryVMY;
    CGFloat antenatalLineLW = 1;
    CGFloat antenatalLineLH = (15 * 2 + nameLblH + 2) * 2;
    UIView * antenatalLineL = [[UIView alloc]initWithFrame:CGRectMake(antenatalLineLX, antenatalLineLY, antenatalLineLW, antenatalLineLH)];
    antenatalLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:antenatalLineL];
    //    产次
    CGFloat antenatalLblX = CGRectGetMaxX(antenatalLineL.frame) + 8 ;
    CGFloat antenatalLblY = deliveryLblY;
    CGFloat antenatalLblW = 30;
    CGFloat antenatalLblH = 20;
    UILabel *antenatalLbl = [[UILabel alloc]initWithFrame:CGRectMake(antenatalLblX, antenatalLblY, antenatalLblW, antenatalLblH)];
    antenatalLbl.text = @"产次";
    antenatalLbl.font = [UIFont systemFontOfSize:15];
    antenatalLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:antenatalLbl];
    //    产次内容前的竖线
    CGFloat antenatalLineLConX = CGRectGetMaxX(antenatalLbl.frame) + 8;
    CGFloat antenatalLineLConY = deliveryVMY;
    CGFloat antenatalLineLConW = 1;
    CGFloat antenatalLineLConH = 15 * 2 + nameLblH + 2;
    UIView * antenatalLineLCon = [[UIView alloc]initWithFrame:CGRectMake(antenatalLineLConX, antenatalLineLConY, antenatalLineLConW, antenatalLineLConH)];
    antenatalLineLCon.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:antenatalLineLCon];
    
    CGFloat antenatalConX = CGRectGetMaxX(antenatalLineLCon.frame) + 8 ;
    CGFloat antenatalConY = deliveryLblY;
    CGFloat antenatalConW = 28;
    CGFloat antenatalConH = 20;
    UILabel *antenatalCon = [[UILabel alloc]initWithFrame:CGRectMake(antenatalConX, antenatalConY, antenatalConW, antenatalConH)];
    antenatalCon.text = self.detailModel.parity;
    antenatalCon.font = [UIFont systemFontOfSize:15];
    antenatalCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:antenatalCon];

    //    末次月经上横线
    CGFloat menstruationVMX = WM ;
    CGFloat menstruationVMY = CGRectGetMaxY(antenatalCon.frame) + 15;
    CGFloat menstruationVMW = W - HJDHorizontalMargin * 2;
    CGFloat menstruationVMH = 1;
    UIView * menstruationVM = [[UIView alloc]initWithFrame:CGRectMake(menstruationVMX, menstruationVMY, menstruationVMW, menstruationVMH)];
    menstruationVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:menstruationVM];
    //    末次月经
    CGFloat menstruationLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat menstruationLblHusY = CGRectGetMaxY(menstruationVM.frame) + 15;
    CGFloat menstruationLblHusW = 60;
    CGFloat menstruationLblHusH = 20;
    UILabel *menstruationLblHus = [[UILabel alloc]initWithFrame:CGRectMake(menstruationLblHusX, menstruationLblHusY, menstruationLblHusW, menstruationLblHusH)];
    menstruationLblHus.text = @"末次月经";
    menstruationLblHus.font = [UIFont systemFontOfSize:15];
    menstruationLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:menstruationLblHus];
    //    末次月经内容
    CGFloat menstruationConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat menstruationConHusY = menstruationLblHusY;
    CGFloat menstruationConHusW = 100;
    CGFloat menstruationConHusH = 20;
    UILabel *menstruationConHus = [[UILabel alloc]initWithFrame:CGRectMake(menstruationConHusX, menstruationConHusY, menstruationConHusW, menstruationConHusH)];
    menstruationConHus.text = self.detailModel.lmp;
    menstruationConHus.font = [UIFont systemFontOfSize:15];
    menstruationConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:menstruationConHus];
    
    //    孕产期
    CGFloat termLblHusX = CGRectGetMaxX(nameCon.frame) + 8 ;
    CGFloat termLblHusY = menstruationLblHusY;
    CGFloat termLblHusW = 60;
    CGFloat termLblHusH = 20;
    UILabel *termLblHus = [[UILabel alloc]initWithFrame:CGRectMake(termLblHusX, termLblHusY, termLblHusW, termLblHusH)];
    termLblHus.text = @"孕产期";
    termLblHus.textAlignment = NSTextAlignmentCenter;
    termLblHus.font = [UIFont systemFontOfSize:15];
    termLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:termLblHus];
    //    孕产期内容
    CGFloat termConHusX = CGRectGetMaxX(ageCon.frame) + 8 ;
    CGFloat termConHusY = menstruationLblHusY;
    CGFloat termConHusW = 100;
    CGFloat termConHusH = 20;
    UILabel *termConHus = [[UILabel alloc]initWithFrame:CGRectMake(termConHusX, termConHusY, termConHusW, termConHusH)];
    termConHus.text = self.detailModel.edd;
    termConHus.font = [UIFont systemFontOfSize:15];
    termConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:termConHus];

    //    既往史上横线
    CGFloat agoVMX = WM ;
    CGFloat agoVMY = CGRectGetMaxY(termConHus.frame) + 15;
    CGFloat agoVMW = W - HJDHorizontalMargin * 2;
    CGFloat agoVMH = 1;
    UIView * agoVM = [[UIView alloc]initWithFrame:CGRectMake(agoVMX, agoVMY, agoVMW, agoVMH)];
    agoVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:agoVM];
    //    既往史
    CGFloat agoLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat agoLblHusY = CGRectGetMaxY(agoVM.frame) + 15;
    CGFloat agoLblHusW = 60;
    CGFloat agoLblHusH = 20;
    UILabel *agoLblHus = [[UILabel alloc]initWithFrame:CGRectMake(agoLblHusX, agoLblHusY, agoLblHusW, agoLblHusH)];
    agoLblHus.text = @"既往史";
    agoLblHus.font = [UIFont systemFontOfSize:15];
    agoLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:agoLblHus];
    //    既往史内容
    CGFloat agoConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat agoConHusY = agoLblHusY;
    CGFloat agoConHusW = phoneConW;
    CGFloat agoConHusH = 20;
    UILabel *agoConHus = [[UILabel alloc]initWithFrame:CGRectMake(agoConHusX, agoConHusY, agoConHusW, agoConHusH)];
    agoConHus.text = self.detailModel.history;
    agoConHus.font = [UIFont systemFontOfSize:15];
    ageConHus.numberOfLines = 0;
    agoConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:agoConHus];
    
    //    家族史上横线
    CGFloat familyVMX = WM ;
    CGFloat familyVMY = CGRectGetMaxY(agoLblHus.frame) + HJDVerticalMargin *4;
    CGFloat familyVMW = W - HJDHorizontalMargin * 2;
    CGFloat familyVMH = 1;
    UIView * familyVM = [[UIView alloc]initWithFrame:CGRectMake(familyVMX, familyVMY, familyVMW, familyVMH)];
    familyVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:familyVM];
    //    家族史
    CGFloat familyLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat familyLblHusY = CGRectGetMaxY(familyVM.frame) + 15;
    CGFloat familyLblHusW = 60;
    CGFloat familyLblHusH = 20;
    UILabel *familyLblHus = [[UILabel alloc]initWithFrame:CGRectMake(familyLblHusX, familyLblHusY, familyLblHusW, familyLblHusH)];
    familyLblHus.text = @"家族史";
    familyLblHus.font = [UIFont systemFontOfSize:15];
    familyLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:familyLblHus];
    //    家族史内容
    CGFloat familyConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat familyConHusY = familyLblHusY;
    CGFloat familyConHusW = phoneVMW;
    CGFloat familyConHusH = 20;
    UILabel *familyConHus = [[UILabel alloc]initWithFrame:CGRectMake(familyConHusX, familyConHusY, familyConHusW, familyConHusH)];
    familyConHus.text = self.detailModel.familyhistory;
    familyConHus.font = [UIFont systemFontOfSize:15];
    familyConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:familyConHus];
    
    //    个人史上横线
    CGFloat  personalVMX = WM ;
    CGFloat  personalVMY = CGRectGetMaxY(familyConHus.frame) + 15;
    CGFloat  personalVMW = W - HJDHorizontalMargin * 2;
    CGFloat  personalVMH = 1;
    UIView *  personalVM = [[UIView alloc]initWithFrame:CGRectMake( personalVMX,  personalVMY,  personalVMW,  personalVMH)];
     personalVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview: personalVM];
    //    个人史
    CGFloat personalLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat personalLblHusY = CGRectGetMaxY(personalVM.frame) + 15;
    CGFloat personalLblHusW = 60;
    CGFloat personalLblHusH = 20;
    UILabel *personalLblHus = [[UILabel alloc]initWithFrame:CGRectMake(personalLblHusX, personalLblHusY, personalLblHusW, personalLblHusH)];
    personalLblHus.text = @"个人史";
    personalLblHus.font = [UIFont systemFontOfSize:15];
    personalLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:personalLblHus];
    //    个人史内容
    CGFloat personalConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat personalConHusY = personalLblHusY;
    CGFloat personalConHusW = phoneVMW;
    CGFloat personalConHusH = 20;
    UILabel *personalConHus = [[UILabel alloc]initWithFrame:CGRectMake(personalConHusX, personalConHusY, personalConHusW, personalConHusH)];
    personalConHus.text = self.detailModel.persohistory;
    personalConHus.font = [UIFont systemFontOfSize:15];
    personalConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:personalConHus];
    
    //    妇科手术史上横线
    CGFloat surgicalVMX = WM ;
    CGFloat surgicalVMY = CGRectGetMaxY(personalLblHus.frame) + 15;
    CGFloat surgicalVMW = W - HJDHorizontalMargin * 2;
    CGFloat surgicalVMH = 1;
    UIView * surgicalVM = [[UIView alloc]initWithFrame:CGRectMake(surgicalVMX, surgicalVMY, surgicalVMW, surgicalVMH)];
    surgicalVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:surgicalVM];
    //    妇科手术史
    CGFloat surgicalLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat surgicalLblHusY = CGRectGetMaxY(surgicalVM.frame) + 15;
    CGFloat surgicalLblHusW = 60;
    CGFloat surgicalLblHusH = 40;
    UILabel *surgicalLblHus = [[UILabel alloc]initWithFrame:CGRectMake(surgicalLblHusX, surgicalLblHusY, surgicalLblHusW, surgicalLblHusH)];
     surgicalLblHus.numberOfLines =0;
    surgicalLblHus.text = @"妇科\n手术史";
   
    surgicalLblHus.font = [UIFont systemFontOfSize:15];
    surgicalLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:surgicalLblHus];
    //    妇科手术史内容
    CGFloat surgicalConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat surgicalConHusY = surgicalLblHusY;
    CGFloat surgicalConHusW = phoneConW;
    CGFloat surgicalConHusH = 20;
    UILabel *surgicalConHus = [[UILabel alloc]initWithFrame:CGRectMake(surgicalConHusX, surgicalConHusY, surgicalConHusW, surgicalConHusH)];
    surgicalConHus.text = self.detailModel.surgery;
    surgicalConHus.font = [UIFont systemFontOfSize:15];
    surgicalLblHus.numberOfLines = 0;
    surgicalConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:surgicalConHus];
    
    //    孕产史上横线
    CGFloat ycVMX = WM ;
    CGFloat ycVMY = CGRectGetMaxY(surgicalLblHus.frame) + HJDVerticalMargin * 4;
    CGFloat ycVMW = W - HJDHorizontalMargin * 2;
    CGFloat ycVMH = 1;
    UIView * ycVM = [[UIView alloc]initWithFrame:CGRectMake(ycVMX, ycVMY, ycVMW, ycVMH)];
    ycVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:ycVM];
    //    孕产史
    CGFloat ycLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat ycLblHusY = CGRectGetMaxY(ycVM.frame) + 15;
    CGFloat ycLblHusW = 60;
    CGFloat ycLblHusH = 20;
    UILabel *ycLblHus = [[UILabel alloc]initWithFrame:CGRectMake(ycLblHusX, ycLblHusY, ycLblHusW, ycLblHusH)];
    ycLblHus.text = @"孕产史";
    ycLblHus.font = [UIFont systemFontOfSize:15];
    ycLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:ycLblHus];
    //    孕产史内容
    CGFloat ycConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat ycConHusY = ycLblHusY;
    CGFloat ycConHusW = phoneConW;
    CGFloat ycConHusH = 20;
    UILabel *ycConHus = [[UILabel alloc]initWithFrame:CGRectMake(ycConHusX, ycConHusY, ycConHusW, ycConHusH)];
    ycConHus.text = self.detailModel.maternal;
    ycConHus.font = [UIFont systemFontOfSize:15];
    ycConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:ycConHus];

    //   身高上横线
    CGFloat heightVMX = WM ;
    CGFloat heightVMY = CGRectGetMaxY(ycLblHus.frame) + 15;
    CGFloat heightVMW = W - HJDHorizontalMargin * 2;
    CGFloat heightVMH = 1;
    UIView * heightVM = [[UIView alloc]initWithFrame:CGRectMake(heightVMX, heightVMY, heightVMW, heightVMH)];
    heightVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:heightVM];
    //    身高
    CGFloat heightLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat heightLblHusY = CGRectGetMaxY(heightVM.frame) + 15;
    CGFloat heightLblHusW = 60;
    CGFloat heightLblHusH = 20;
    UILabel *heightLblHus = [[UILabel alloc]initWithFrame:CGRectMake(heightLblHusX, heightLblHusY, heightLblHusW, heightLblHusH)];
    heightLblHus.text = @"身高";
    heightLblHus.font = [UIFont systemFontOfSize:15];
    heightLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:heightLblHus];
    //    身高内容
    CGFloat heightConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat heightConHusY = heightLblHusY;
    CGFloat heightConHusW = 100;
    CGFloat heightConHusH = 20;
    UILabel *heightConHus = [[UILabel alloc]initWithFrame:CGRectMake(heightConHusX, heightConHusY, heightConHusW,heightConHusH)];
    heightConHus.text = self.detailModel.height;
    heightConHus.font = [UIFont systemFontOfSize:15];
    heightConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:heightConHus];
//    体重前竖线
    CGFloat weightLineLX = CGRectGetMaxX(nameCon.frame) + 8;
    CGFloat weightLineLY = heightVMY;
    CGFloat weightLineLW = 1;
    CGFloat weightLineLH = 15 * 2 + nameLblH + 2;
    UIView * weightLineL = [[UIView alloc]initWithFrame:CGRectMake(weightLineLX, weightLineLY, weightLineLW, weightLineLH)];
    weightLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weightLineL];
    //    体重
    CGFloat weightX = CGRectGetMaxX(weightLineL.frame) + 8 ;
    CGFloat weightY = heightLblHusY;
    CGFloat weightW = 30;
    CGFloat weightH = 20;
    UILabel *weight = [[UILabel alloc]initWithFrame:CGRectMake(weightX, weightY, weightW, weightH)];
    weight.text = @"体重";
    weight.font = [UIFont systemFontOfSize:15];
    weight.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weight];
    //    体重内容前的竖线
    CGFloat weightConLineLX = CGRectGetMaxX(ageCon.frame) + 1;
    CGFloat weightConLineLY = heightVMY;
    CGFloat weightConLineLW = 1;
    CGFloat weightConLineLH = 15 * 2 + nameLblH + 2;
    UIView * weightConLineL = [[UIView alloc]initWithFrame:CGRectMake(weightConLineLX, weightConLineLY, weightConLineLW, weightConLineLH)];
    weightConLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weightConLineL];
//   体重内容
    CGFloat weightConX = CGRectGetMaxX(weightConLineL.frame) + 8;
    CGFloat weightConY = heightLblHusY;
    CGFloat weightConW = 100;
    CGFloat weightConH = 20;
    UILabel * weightCon = [[UILabel alloc]initWithFrame:CGRectMake(weightConX, weightConY, weightConW, weightConH)];
    weightCon.text = self.detailModel.weight;
    weightCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:weightCon];
    
    //    体重指数上横线
    CGFloat weightSVMX = WM ;
    CGFloat weightSVMY = CGRectGetMaxY(weight.frame) + 15;
    CGFloat weightSVMW = W - HJDHorizontalMargin * 2;
    CGFloat weightSVMH = 1;
    UIView * weightSVM = [[UIView alloc]initWithFrame:CGRectMake(weightSVMX, weightSVMY, weightSVMW, weightSVMH)];
    weightSVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weightSVM];
    //    体重指数
    CGFloat weightSLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat weightSLblHusY = CGRectGetMaxY(weightSVM.frame) + 15;
    CGFloat weightSLblHusW = 60;
    CGFloat weightSLblHusH = 20;
    UILabel *weightSLblHus = [[UILabel alloc]initWithFrame:CGRectMake(weightSLblHusX, weightSLblHusY, weightSLblHusW, weightSLblHusH)];
    weightSLblHus.text = @"体重指数";
    weightSLblHus.font = [UIFont systemFontOfSize:15];
    weightSLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:weightSLblHus];
    //    体重指数内容
    CGFloat weightSConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat weightSConHusY = weightSLblHusY;
    CGFloat weightSConHusW = phoneConW;
    CGFloat weightSConHusH = 20;
    UILabel *weightSConHus = [[UILabel alloc]initWithFrame:CGRectMake(weightSConHusX, weightSConHusY, weightSConHusW, weightSConHusH)];
    weightSConHus.text = self.detailModel.bmi;
    weightSConHus.font = [UIFont systemFontOfSize:15];
    weightSConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:weightSConHus];
    //    血压上横线
    CGFloat bloodSVMX = WM ;
    CGFloat bloodSVMY = CGRectGetMaxY(weightSLblHus.frame) + 15;
    CGFloat bloodSVMW = W - HJDHorizontalMargin * 2;
    CGFloat bloodSVMH = 1;
    UIView * bloodSVM = [[UIView alloc]initWithFrame:CGRectMake(bloodSVMX, bloodSVMY, bloodSVMW, bloodSVMH)];
    bloodSVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bloodSVM];
    //    血压
    CGFloat bloodSLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat bloodSLblHusY = CGRectGetMaxY(bloodSVM.frame) + 15;
    CGFloat bloodSLblHusW = 60;
    CGFloat bloodSLblHusH = 20;
    UILabel *bloodSLblHus = [[UILabel alloc]initWithFrame:CGRectMake(bloodSLblHusX, bloodSLblHusY, bloodSLblHusW, bloodSLblHusH)];
    bloodSLblHus.text = @"血压";
    bloodSLblHus.font = [UIFont systemFontOfSize:15];
    bloodSLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bloodSLblHus];
    //    血压内容
    CGFloat bloodSConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat bloodSConHusY = bloodSLblHusY;
    CGFloat bloodSConHusW = phoneConW;
    CGFloat bloodSConHusH = 20;
    UILabel *bloodSConHus = [[UILabel alloc]initWithFrame:CGRectMake(bloodSConHusX, bloodSConHusY, bloodSConHusW, bloodSConHusH)];
    bloodSConHus.text = self.detailModel.sbp;
    bloodSConHus.font = [UIFont systemFontOfSize:15];
    bloodSConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:bloodSConHus];
    //    听诊上横线
    CGFloat auscultationSVMX = WM ;
    CGFloat auscultationSVMY = CGRectGetMaxY(bloodSLblHus.frame) + 15;
    CGFloat auscultationSVMW = W - HJDHorizontalMargin * 2;
    CGFloat auscultationSVMH = 1;
    UIView * auscultationSVM = [[UIView alloc]initWithFrame:CGRectMake(auscultationSVMX, auscultationSVMY, auscultationSVMW, auscultationSVMH)];
    auscultationSVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:auscultationSVM];
    //听诊
    CGFloat auscultationLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat auscultationLblHusY = CGRectGetMaxY(auscultationSVM.frame) + 15;
    CGFloat auscultationLblHusW = 60;
    CGFloat auscultationLblHusH = 20;
    UILabel *auscultationLblHus = [[UILabel alloc]initWithFrame:CGRectMake(auscultationLblHusX, auscultationLblHusY, auscultationLblHusW, auscultationLblHusH)];
    auscultationLblHus.text = @"听诊";
    auscultationLblHus.font = [UIFont systemFontOfSize:15];
    auscultationLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:auscultationLblHus];
    //    心脏
    CGFloat heartConHusX = CGRectGetMaxX(LineL.frame) + 10 ;
    CGFloat heartConHusY = auscultationLblHusY;
    CGFloat heartConHusW = 30;
    CGFloat heartConHusH = 20;
    UILabel *heartConHus = [[UILabel alloc]initWithFrame:CGRectMake(heartConHusX, heartConHusY, heartConHusW, heartConHusH)];
    heartConHus.text = @"心脏";
    heartConHus.font = [UIFont systemFontOfSize:15];
    heartConHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:heartConHus];
    //    心脏前的竖线
    CGFloat heartConLineLX = CGRectGetMaxX(heartConHus.frame) + 8;
    CGFloat heartConLineLY = auscultationSVMY;
    CGFloat heartConLineLW = 1;
    CGFloat heartConLineLH = 358 ;
    UIView * heartConLineL = [[UIView alloc]initWithFrame:CGRectMake(heartConLineLX, heartConLineLY, heartConLineLW, heartConLineLH)];
    heartConLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:heartConLineL];
//    心脏内容
    CGFloat heartConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat heartConY = auscultationLblHusY;
    CGFloat heartConW = phoneVMW;
    CGFloat heartConH = 20;
    UILabel *heartCon = [[UILabel alloc]initWithFrame:CGRectMake(heartConX, heartConY, heartConW, heartConH)];
    heartCon.text = self.detailModel.cardiac;
    heartCon.font = [UIFont systemFontOfSize:15];
    heartCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:heartCon];
      //    肺部上横线
    CGFloat lungVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat lungVMY = CGRectGetMaxY(heartConHus.frame) + 15;
    CGFloat lungVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat lungVMH = 1;
    UIView * lungVM = [[UIView alloc]initWithFrame:CGRectMake(lungVMX, lungVMY, lungVMW, lungVMH)];
    lungVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:lungVM];
    //肺部
    CGFloat lungLblHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat lungLblHusY = CGRectGetMaxY(lungVM.frame) + 15;
    CGFloat lungLblHusW = 60;
    CGFloat lungLblHusH = 20;
    UILabel *lungLblHus = [[UILabel alloc]initWithFrame:CGRectMake(lungLblHusX, lungLblHusY, lungLblHusW, lungLblHusH)];
    lungLblHus.text = @"肺部";
    lungLblHus.font = [UIFont systemFontOfSize:15];
    lungLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:lungLblHus];
    //    肺部内容
    CGFloat lungConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat lungConY = lungLblHusY;
    CGFloat lungConW = phoneConW;
    CGFloat lungConH = 20;
    UILabel *lungCon = [[UILabel alloc]initWithFrame:CGRectMake(lungConX, lungConY, lungConW, lungConH)];
    lungCon.text = self.detailModel.lung;
    lungCon.font = [UIFont systemFontOfSize:15];
    lungCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:lungCon];
    //    妇科检查上横线
    CGFloat gynaeVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat gynaeVMY = CGRectGetMaxY(lungLblHus.frame) + 15;
    CGFloat gynaeVMW = W - HJDHorizontalMargin * 2;
    CGFloat gynaeVMH = 1;
    UIView * gynaeVM = [[UIView alloc]initWithFrame:CGRectMake(gynaeVMX, gynaeVMY, gynaeVMW, gynaeVMH)];
    gynaeVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:gynaeVM];
//    妇科检查
    CGFloat gynaeLblX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat gynaeLblY = CGRectGetMaxY(gynaeVM.frame) + 15;
    CGFloat gynaeLblW = 60;
    CGFloat gynaeLblH = 20;
    UILabel *gynaeLbl = [[UILabel alloc]initWithFrame:CGRectMake(gynaeLblX, gynaeLblY, gynaeLblW, gynaeLblH)];
    gynaeLbl.text = @"妇科检查";
    gynaeLbl.font = [UIFont systemFontOfSize:15];
    gynaeLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:gynaeLbl];
    //外阴
    CGFloat vulvaLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat vulvaLblY = CGRectGetMaxY(gynaeVM.frame) + 15;
    CGFloat vulvaLblW = 60;
    CGFloat vulvaLblH = 20;
    UILabel *lungLbl = [[UILabel alloc]initWithFrame:CGRectMake(vulvaLblX, vulvaLblY, vulvaLblW, vulvaLblH)];
    lungLbl.text = @"外阴";
    lungLbl.font = [UIFont systemFontOfSize:15];
    lungLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:lungLbl];
    //    外阴内容
    CGFloat vulvaConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat vulvaConY = vulvaLblY;
    CGFloat vulvaConW = phoneConW;
    CGFloat vulvaConH = 20;
    UILabel *vulvaCon = [[UILabel alloc]initWithFrame:CGRectMake(vulvaConX, vulvaConY, vulvaConW, vulvaConH)];
    vulvaCon.text = self.detailModel.waiyin;
    vulvaCon.font = [UIFont systemFontOfSize:15];
    vulvaCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:vulvaCon];
    //    阴道上横线
    CGFloat vaginaVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat vaginaVMY = CGRectGetMaxY(lungLbl.frame) + 15;
    CGFloat vaginaVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat vaginaVMH = 1;
    UIView * vaginaVM = [[UIView alloc]initWithFrame:CGRectMake(vaginaVMX, vaginaVMY, vaginaVMW, vaginaVMH)];
    vaginaVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:vaginaVM];
    //阴道
    CGFloat vaginaLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat vaginaLblY = CGRectGetMaxY(vaginaVM.frame) + 15;
    CGFloat vaginaLblW = 60;
    CGFloat vaginaLblH = 20;
    UILabel *vaginaLbl = [[UILabel alloc]initWithFrame:CGRectMake(vaginaLblX, vaginaLblY, vaginaLblW, vaginaLblH)];
    vaginaLbl.text = @"阴道";
    vaginaLbl.font = [UIFont systemFontOfSize:15];
    vaginaLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:vaginaLbl];
    //    阴道内容
    CGFloat vaginaConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat vaginaConY = vaginaLblY;
    CGFloat vaginaConW = phoneConW;
    CGFloat vaginaConH = 20;
    UILabel *vaginaCon = [[UILabel alloc]initWithFrame:CGRectMake(vaginaConX, vaginaConY, vaginaConW, vaginaConH)];
    vaginaCon.text = self.detailModel.yindao;
    vaginaCon.font = [UIFont systemFontOfSize:15];
    vaginaCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:vaginaCon];
    //    宫颈上横线
    CGFloat cervixVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat cervixVMY = CGRectGetMaxY(vaginaLbl.frame) + 15;
    CGFloat cervixVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat cervixVMH = 1;
    UIView * cervixVM = [[UIView alloc]initWithFrame:CGRectMake(cervixVMX, cervixVMY, cervixVMW, cervixVMH)];
    cervixVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:cervixVM];
    //宫颈
    CGFloat cervixLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat cervixLblY = CGRectGetMaxY(cervixVM.frame) + 15;
    CGFloat cervixLblW = 60;
    CGFloat cervixLblH = 20;
    UILabel *cervixLbl = [[UILabel alloc]initWithFrame:CGRectMake(cervixLblX, cervixLblY, cervixLblW, cervixLblH)];
    cervixLbl.text = @"宫颈";
    cervixLbl.font = [UIFont systemFontOfSize:15];
    cervixLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:cervixLbl];
    //    宫颈内容
    CGFloat cervixConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat cervixConY = cervixLblY;
    CGFloat cervixConW = phoneConW;
    CGFloat cervixConH = 20;
    UILabel *cervixCon = [[UILabel alloc]initWithFrame:CGRectMake(cervixConX, cervixConY, cervixConW, cervixConH)];
    cervixCon.text = self.detailModel.gongjin;
    cervixCon.font = [UIFont systemFontOfSize:15];
    cervixCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:cervixCon];
    //    子宫上横线
    CGFloat uterusVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat uterusVMY = CGRectGetMaxY(cervixLbl.frame) + 15;
    CGFloat uterusVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat uterusVMH = 1;
    UIView * uterusVM = [[UIView alloc]initWithFrame:CGRectMake(uterusVMX, uterusVMY, uterusVMW, uterusVMH)];
    uterusVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:uterusVM];
    //子宫
    CGFloat uterusLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat uterusLblY = CGRectGetMaxY(uterusVM.frame) + 15;
    CGFloat uterusLblW = 60;
    CGFloat uterusLblH = 20;
    UILabel *uterusLbl = [[UILabel alloc]initWithFrame:CGRectMake(uterusLblX, uterusLblY, uterusLblW, uterusLblH)];
    uterusLbl.text = @"子宫";
    uterusLbl.font = [UIFont systemFontOfSize:15];
    uterusLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:uterusLbl];
    //    子宫内容
    CGFloat uterusConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat uterusConY = uterusLblY;
    CGFloat uterusConW = phoneConW;
    CGFloat uterusConH = 20;
    UILabel *uterusCon = [[UILabel alloc]initWithFrame:CGRectMake(uterusConX, uterusConY, uterusConW, uterusConH)];
    uterusCon.text = self.detailModel.zigong;
    uterusCon.font = [UIFont systemFontOfSize:15];
    uterusCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:uterusCon];
    //    附件上横线
    CGFloat annexVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat annexVMY = CGRectGetMaxY(uterusLbl.frame) + 15;
    CGFloat annexVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat annexVMH = 1;
    UIView * annexVM = [[UIView alloc]initWithFrame:CGRectMake(annexVMX, annexVMY, annexVMW, annexVMH)];
    annexVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:annexVM];
    //附件
    CGFloat annexLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat annexLblY = CGRectGetMaxY(annexVM.frame) + 15;
    CGFloat annexLblW = 60;
    CGFloat annexLblH = 20;
    UILabel *annexLbl = [[UILabel alloc]initWithFrame:CGRectMake(annexLblX, annexLblY, annexLblW, annexLblH)];
    annexLbl.text = @"附件";
    annexLbl.font = [UIFont systemFontOfSize:15];
    annexLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:annexLbl];
    //    附件内容
    CGFloat annexConX = CGRectGetMaxX(heartConLineL.frame) + 8 ;
    CGFloat annexConY = annexLblY;
    CGFloat annexConW = phoneConW;
    CGFloat annexConH = 20;
    UILabel *annexCon = [[UILabel alloc]initWithFrame:CGRectMake(annexConX, annexConY, annexConW, annexConH)];
    annexCon.text = self.detailModel.fujian;
    annexCon.font = [UIFont systemFontOfSize:15];
    annexCon.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:annexCon];
    //    血常规上横线
    CGFloat bloodrtVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat bloodrtVMY = CGRectGetMaxY(annexLbl.frame) + 15;
    CGFloat bloodrtVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat bloodrtVMH = 1;
    UIView * bloodrtVM = [[UIView alloc]initWithFrame:CGRectMake(bloodrtVMX, bloodrtVMY, bloodrtVMW, bloodrtVMH)];
    bloodrtVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bloodrtVM];
    //血常规
    CGFloat bloodrtLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat bloodrtLblY = CGRectGetMaxY(bloodrtVM.frame) + 15;
    CGFloat bloodrtLblW = 130;
    CGFloat bloodrtLblH = 20;
    UILabel *bloodrtLbl = [[UILabel alloc]initWithFrame:CGRectMake(bloodrtLblX, bloodrtLblY, bloodrtLblW, bloodrtLblH)];
    bloodrtLbl.text = @"血常规+血型";
    bloodrtLbl.font = [UIFont systemFontOfSize:15];
    bloodrtLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bloodrtLbl];
    //    血常规的长竖线
    CGFloat bloodrtLineLX = CGRectGetMaxX(bloodrtLbl.frame) + 8;
    CGFloat bloodrtLineLY = bloodrtVMY;
    CGFloat bloodrtLineLW = 1;
    CGFloat bloodrtLineLH = 358 ;
    UIView * bloodrtLineL = [[UIView alloc]initWithFrame:CGRectMake(bloodrtLineLX, bloodrtLineLY, bloodrtLineLW, bloodrtLineLH)];
    bloodrtLineL.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bloodrtLineL];
    //    血常规内容
    CGFloat bloodrtConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat bloodrtConY = bloodrtLblY;
    CGFloat bloodrtConW = 100;
    CGFloat bloodrtConH = 20;
    UIButton *bloodrtCon = [[UIButton alloc]initWithFrame:CGRectMake(bloodrtConX, bloodrtConY, bloodrtConW, bloodrtConH)];
    [bloodrtCon addTarget:self action:@selector(bloodBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [bloodrtCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    bloodrtCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [bloodrtCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
[self.scrollView addSubview:bloodrtCon];
    //    尿常规上横线
    CGFloat urineroutineVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat urineroutineVMY = CGRectGetMaxY(bloodrtLbl.frame) + 15;
    CGFloat urineroutineVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat urineroutineVMH = 1;
    UIView * urineroutineVM = [[UIView alloc]initWithFrame:CGRectMake(urineroutineVMX, urineroutineVMY, urineroutineVMW, urineroutineVMH)];
    urineroutineVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:urineroutineVM];
    //尿常规
    CGFloat urineroutineLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat urineroutineLblY = CGRectGetMaxY(urineroutineVM.frame) + 15;
    CGFloat urineroutineLblW = 130;
    CGFloat urineroutineLblH = 20;
    UILabel *urineroutineLbl = [[UILabel alloc]initWithFrame:CGRectMake(urineroutineLblX, urineroutineLblY, urineroutineLblW, urineroutineLblH)];
    urineroutineLbl.text = @"尿常规";
    urineroutineLbl.font = [UIFont systemFontOfSize:15];
    urineroutineLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:urineroutineLbl];
        //    尿常规内容
    CGFloat urineroutineConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat urineroutineConY = urineroutineLblY;
    CGFloat urineroutineConW = 100;
    CGFloat urineroutineConH = 20;
    UIButton *urineroutineCon = [[UIButton alloc]initWithFrame:CGRectMake(urineroutineConX, urineroutineConY, urineroutineConW, urineroutineConH)];
    [urineroutineCon addTarget:self action:@selector(urineroutineBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [urineroutineCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    urineroutineCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [urineroutineCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:urineroutineCon];
    //    肝肾功能+血糖上横线
    CGFloat hrsVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat hrsVMY = CGRectGetMaxY(urineroutineLbl.frame) + 15;
    CGFloat hrsVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat hrsVMH = 1;
    UIView * hrsVM = [[UIView alloc]initWithFrame:CGRectMake(hrsVMX, hrsVMY, hrsVMW, hrsVMH)];
    hrsVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hrsVM];
    //肝肾功能+血糖
    CGFloat hrsLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat hrsLblY = CGRectGetMaxY(hrsVM.frame) + 15;
    CGFloat hrsLblW = 130;
    CGFloat hrsLblH = 20;
    UILabel *hrsLbl = [[UILabel alloc]initWithFrame:CGRectMake(hrsLblX, hrsLblY, hrsLblW, hrsLblH)];
    hrsLbl.text = @"肝肾功能+血糖";
    hrsLbl.font = [UIFont systemFontOfSize:15];
    hrsLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hrsLbl];
    //    肝肾功能+血糖内容
    CGFloat hrsConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat hrsConY = hrsLblY;
    CGFloat hrsConW = 100;
    CGFloat hrsConH = 20;
    UIButton *hrsCon = [[UIButton alloc]initWithFrame:CGRectMake(hrsConX, hrsConY, hrsConW, hrsConH)];
    [hrsCon addTarget:self action:@selector(hrsBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [hrsCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    hrsCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [hrsCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:hrsCon];
    //    阴道分泌物+清洁度上横线
    CGFloat secreteVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat secreteVMY = CGRectGetMaxY(hrsLbl.frame) + 15;
    CGFloat secreteVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat secreteVMH = 1;
    UIView * secreteVM = [[UIView alloc]initWithFrame:CGRectMake(secreteVMX, secreteVMY, secreteVMW, secreteVMH)];
    secreteVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:secreteVM];
    //阴道分泌物+清洁度
    CGFloat secreteLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat secreteLblY = CGRectGetMaxY(secreteVM.frame) + 15;
    CGFloat secreteLblW = 130;
    CGFloat secreteLblH = 20;
    UILabel *secreteLbl = [[UILabel alloc]initWithFrame:CGRectMake(secreteLblX, secreteLblY, secreteLblW, secreteLblH)];
    secreteLbl.text = @"阴道分泌物+清洁度";
    secreteLbl.font = [UIFont systemFontOfSize:15];
    secreteLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:secreteLbl];
    //    阴道分泌物+清洁度内容
    CGFloat secreteConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat secreteConY = secreteLblY;
    CGFloat secreteConW = 100;
    CGFloat secreteConH = 20;
    UIButton *secreteCon = [[UIButton alloc]initWithFrame:CGRectMake(secreteConX, secreteConY, secreteConW, secreteConH)];
    [secreteCon addTarget:self action:@selector(secreteBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [secreteCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    secreteCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [secreteCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:secreteCon];
    //    乙型上横线
    CGFloat hbvVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat hbvVMY = CGRectGetMaxY(secreteLbl.frame) + 15;
    CGFloat hbvVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat hbvVMH = 1;
    UIView * hbvVM = [[UIView alloc]initWithFrame:CGRectMake(hbvVMX, hbvVMY, hbvVMW, hbvVMH)];
    hbvVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hbvVM];
    //乙型
    CGFloat hbvLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat hbvLblY = CGRectGetMaxY(hbvVM.frame) + 15;
    CGFloat hbvLblW = 130;
    CGFloat hbvLblH = 20;
    UILabel *hbvLbl = [[UILabel alloc]initWithFrame:CGRectMake(hbvLblX, hbvLblY, hbvLblW, hbvLblH)];
    hbvLbl.text = @"乙型肝炎五项";
    hbvLbl.font = [UIFont systemFontOfSize:15];
    hbvLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hbvLbl];
    //    乙型内容
    CGFloat hbvConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat hbvConY = hbvLblY;
    CGFloat hbvConW = 100;
    CGFloat hbvConH = 20;
    UIButton *hbvCon = [[UIButton alloc]initWithFrame:CGRectMake(hbvConX, hbvConY, hbvConW, hbvConH)];
    [hbvCon addTarget:self action:@selector(hbvBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [hbvCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    hbvCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [hbvCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:hbvCon];
    //    传染上横线
    CGFloat infectVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat infectVMY = CGRectGetMaxY(hbvLbl.frame) + 15;
    CGFloat infectVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat infectVMH = 1;
    UIView * infectVM = [[UIView alloc]initWithFrame:CGRectMake(infectVMX, infectVMY, infectVMW, infectVMH)];
    infectVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:infectVM];
    //传染
    CGFloat infectLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat infectLblY = CGRectGetMaxY(infectVM.frame) + 15;
    CGFloat infectLblW = 130;
    CGFloat infectLblH = 20;
    UILabel *infectLbl = [[UILabel alloc]initWithFrame:CGRectMake(infectLblX, infectLblY, infectLblW, infectLblH)];
    infectLbl.text = @"传染四项";
    infectLbl.font = [UIFont systemFontOfSize:15];
    infectLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:infectLbl];
    //    传染内容
    CGFloat infectConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat infectConY = infectLblY;
    CGFloat infectConW = 100;
    CGFloat infectConH = 20;
    UIButton *infectCon = [[UIButton alloc]initWithFrame:CGRectMake(infectConX, infectConY, infectConW, infectConH)];
    [infectCon addTarget:self action:@selector(infectBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [infectCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    infectCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [infectCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:infectCon];
    //    B超上横线
    CGFloat bultrasonicVMX = CGRectGetMaxX(LineL.frame) ;
    CGFloat bultrasonicVMY = CGRectGetMaxY(infectLbl.frame) + 15;
    CGFloat bultrasonicVMW = W - HJDHorizontalMargin * 2 - 60 - 16-1 ;
    CGFloat bultrasonicVMH = 1;
    UIView * bultrasonicVM = [[UIView alloc]initWithFrame:CGRectMake(bultrasonicVMX, bultrasonicVMY, bultrasonicVMW, bultrasonicVMH)];
    bultrasonicVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bultrasonicVM];
    //B超
    CGFloat bultrasonicLblX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat bultrasonicLblY = CGRectGetMaxY(bultrasonicVM.frame) + 15;
    CGFloat bultrasonicLblW = 130;
    CGFloat bultrasonicLblH = 20;
    UILabel *bultrasonicLbl = [[UILabel alloc]initWithFrame:CGRectMake(bultrasonicLblX, bultrasonicLblY, bultrasonicLblW, bultrasonicLblH)];
    bultrasonicLbl.text = @"B超";
    bultrasonicLbl.font = [UIFont systemFontOfSize:15];
    bultrasonicLbl.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:bultrasonicLbl];
    //    B超内容
    CGFloat bultrasonicConX = CGRectGetMaxX(bloodrtLineL.frame) + 8 ;
    CGFloat bultrasonicConY = bultrasonicLblY;
    CGFloat bultrasonicConW = 100;
    CGFloat bultrasonicConH = 20;
    UIButton *bultrasonicCon = [[UIButton alloc]initWithFrame:CGRectMake(bultrasonicConX, bultrasonicConY, bultrasonicConW, bultrasonicConH)];
    [bultrasonicCon addTarget:self action:@selector(bultrasonicBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [bultrasonicCon setTitle:@"点击查看附件" forState:UIControlStateNormal];
    bultrasonicCon.titleLabel.font = [UIFont systemFontOfSize:15];
    [bultrasonicCon setTitleColor:[UIColor getColorWithHexNumber:@"FF9BAA"] forState:UIControlStateNormal];
    [self.scrollView addSubview:bultrasonicCon];
//    保健上的横线
    CGFloat healthcareVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat healthcareVMY = CGRectGetMaxY(bultrasonicLbl.frame) + 15;
    CGFloat healthcareVMW = W - HJDHorizontalMargin * 2;
    CGFloat healthcareVMH = 1;
    UIView * healthcareVM = [[UIView alloc]initWithFrame:CGRectMake(healthcareVMX, healthcareVMY, healthcareVMW, healthcareVMH)];
    healthcareVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:healthcareVM];
    //    保健
    CGFloat healthcareLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat healthcareLblHusY = CGRectGetMaxY(healthcareVM.frame) + 15;
    CGFloat healthcareLblHusW = 60;
    CGFloat healthcareLblHusH = 20;
    UILabel *healthcareLblHus = [[UILabel alloc]initWithFrame:CGRectMake(healthcareLblHusX, healthcareLblHusY, healthcareLblHusW, healthcareLblHusH)];
    healthcareLblHus.text = @"保健指导";
    healthcareLblHus.font = [UIFont systemFontOfSize:15];
    healthcareLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:healthcareLblHus];
    //    保健内容
    CGFloat healthcareConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat healthcareConHusY = healthcareLblHusY;
    CGFloat healthcareConHusW = phoneConW;
    CGFloat healthcareConHusH = 20;
    UILabel *healthcareConHus = [[UILabel alloc]initWithFrame:CGRectMake(healthcareConHusX, healthcareConHusY, healthcareConHusW, healthcareConHusH)];
    healthcareConHus.text = self.detailModel.care;
    healthcareConHus.numberOfLines = 0;
    healthcareConHus.font = [UIFont systemFontOfSize:15];
    healthcareConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:healthcareConHus];
    //    检查医生上的横线
    CGFloat doctorVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat doctorVMY = CGRectGetMaxY(healthcareLblHus.frame) + HJDVerticalMargin * 6;
    CGFloat doctorVMW = W - HJDHorizontalMargin * 2;
    CGFloat doctorVMH = 1;
    UIView * doctorVM = [[UIView alloc]initWithFrame:CGRectMake(doctorVMX, doctorVMY, doctorVMW, doctorVMH)];
    doctorVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:doctorVM];
    //    检查医生
    CGFloat doctorLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat doctorLblHusY = CGRectGetMaxY(doctorVM.frame) + 15;
    CGFloat doctorLblHusW = 60;
    CGFloat doctorLblHusH = 20;
    UILabel *doctorLblHus = [[UILabel alloc]initWithFrame:CGRectMake(doctorLblHusX, doctorLblHusY, doctorLblHusW, doctorLblHusH)];
    doctorLblHus.text = @"检查医生";
    doctorLblHus.font = [UIFont systemFontOfSize:15];
    doctorLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:doctorLblHus];
    //    检查医生内容
    CGFloat doctorConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat doctorConHusY = doctorLblHusY;
    CGFloat doctorConHusW = phoneConW;
    CGFloat doctorConHusH = 20;
    UILabel *doctorConHus = [[UILabel alloc]initWithFrame:CGRectMake(doctorConHusX, doctorConHusY, doctorConHusW, doctorConHusH)];
    doctorConHus.text = self.detailModel.doctor;
    doctorConHus.numberOfLines = 0;
    doctorConHus.font = [UIFont systemFontOfSize:15];
    doctorConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:doctorConHus];
    //    检查医院上的横线
    CGFloat hospitalVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat hospitalVMY = CGRectGetMaxY(doctorLblHus.frame) + 15;
    CGFloat hospitalVMW = W - HJDHorizontalMargin * 2;
    CGFloat hospitalVMH = 1;
    UIView * hospitalVM = [[UIView alloc]initWithFrame:CGRectMake(hospitalVMX, hospitalVMY, hospitalVMW, hospitalVMH)];
    hospitalVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hospitalVM];
    //    检查医院
    CGFloat hospitalLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat hospitalLblHusY = CGRectGetMaxY(hospitalVM.frame) + 15;
    CGFloat hospitalLblHusW = 60;
    CGFloat hospitalLblHusH = 20;
    UILabel *hospitalLblHus = [[UILabel alloc]initWithFrame:CGRectMake(hospitalLblHusX, hospitalLblHusY, hospitalLblHusW, hospitalLblHusH)];
    hospitalLblHus.text = @"检查医院";
    hospitalLblHus.font = [UIFont systemFontOfSize:15];
    hospitalLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:hospitalLblHus];
    //    检查医院内容
    CGFloat hospitalConHusX = CGRectGetMaxX(LineL.frame) + 8 ;
    CGFloat hospitalConHusY = hospitalLblHusY;
    CGFloat hospitalConHusW = phoneConW;
    CGFloat hospitalConHusH = 20;
    UILabel *hospitalConHus = [[UILabel alloc]initWithFrame:CGRectMake(hospitalConHusX, hospitalConHusY, hospitalConHusW, hospitalConHusH)];
    hospitalConHus.text = self.detailModel.hospital;
    hospitalConHus.numberOfLines = 0;
    hospitalConHus.font = [UIFont systemFontOfSize:15];
    hospitalConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:hospitalConHus];
    //    下次产检日期上的横线
    CGFloat dateVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat dateVMY = CGRectGetMaxY(hospitalLblHus.frame) + 15;
    CGFloat dateVMW = W - HJDHorizontalMargin * 2;
    CGFloat dateVMH = 1;
    UIView * dateVM = [[UIView alloc]initWithFrame:CGRectMake(dateVMX, dateVMY, dateVMW, dateVMH)];
    dateVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:dateVM];
    //   下次产检日期
    CGFloat dateLblHusX = CGRectGetMaxX(VerLineL.frame) + 8 ;
    CGFloat dateLblHusY = CGRectGetMaxY(dateVM.frame) + 15;
    CGFloat dateLblHusW = 100;
    CGFloat dateLblHusH = 20;
    UILabel *dateLblHus = [[UILabel alloc]initWithFrame:CGRectMake(dateLblHusX, dateLblHusY, dateLblHusW, dateLblHusH)];
    dateLblHus.text = @"下次产检日期";
    dateLblHus.font = [UIFont systemFontOfSize:15];
    dateLblHus.textColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:dateLblHus];
    //    下次产检日期内容
    CGFloat dateConHusX = CGRectGetMaxX(LineL.frame) + HJDHorizontalMargin ;
    CGFloat dateConHusY = dateLblHusY;
    CGFloat dateConHusW = phoneConW;
    CGFloat dateConHusH = 20;
    UILabel *dateConHus = [[UILabel alloc]initWithFrame:CGRectMake(dateConHusX, dateConHusY, dateConHusW, dateConHusH)];
    dateConHus.text = self.detailModel.nexttime;
    dateConHus.numberOfLines = 0;
    dateConHus.font = [UIFont systemFontOfSize:15];
    dateConHus.textColor = [UIColor getColorWithHexNumber:@"848484"];
    [self.scrollView addSubview:dateConHus];
    //   最后的横线
    CGFloat lastVMX = CGRectGetMaxX(VerLineL.frame) ;
    CGFloat lastVMY = CGRectGetMaxY(dateLblHus.frame) + 15;
    CGFloat lastVMW = W - HJDHorizontalMargin * 2;
    CGFloat lastVMH = 1;
    UIView * lastVM = [[UIView alloc]initWithFrame:CGRectMake(lastVMX, lastVMY, lastVMW, lastVMH)];
    lastVM.backgroundColor = [UIColor getColorWithHexNumber:@"323232"];
    [self.scrollView addSubview:lastVM];
    




    
}

-(void)shareBtnClick
{
    HJDLog(@"分享");
}

-(void)bloodBtnClick
{
    HJDBloodViewController *blood = [[HJDBloodViewController alloc]init];
    HJDDetailModel *bModel = self.detailModel;
    blood.imageModel = bModel;
    [self.navigationController pushViewController:blood animated:YES];

    
}
-(void)urineroutineBtnClick
{
    HJDNiaoViewController *niao = [[HJDNiaoViewController alloc]init];
    HJDDetailModel *nModel = self.detailModel;
    niao.imageModel = nModel;
    [self.navigationController pushViewController:niao animated:YES];
}
-(void)hrsBtnClick
{
    HJDGanViewController *gan = [[HJDGanViewController alloc]init];
    HJDDetailModel *gModel = self.detailModel;
    gan.GimageModel = gModel;
    [self.navigationController pushViewController:gan animated:YES];
}
-(void)secreteBtnClick{
    HJDYinDaoViewController *yinDao = [[HJDYinDaoViewController alloc]init];
    HJDDetailModel *yModel = self.detailModel;
    yinDao.YImageModel = yModel;
    [self.navigationController pushViewController:yinDao animated:YES];
}
-(void)hbvBtnClick
{
    HJDYiganViewController *yiGan = [[HJDYiganViewController alloc]init];
    HJDDetailModel *yModel = self.detailModel;
    yiGan.YGimageModel = yModel;
    [self.navigationController pushViewController:yiGan animated:YES];
}
-(void)infectBtnClick
{
    HJDChuanRanViewController *chuan = [[HJDChuanRanViewController alloc]init];
    HJDDetailModel *cModel = self.detailModel;
    chuan.CimageModel = cModel;
    [self.navigationController pushViewController:chuan animated:YES];
    
}
-(void)bultrasonicBtnClick
{
    HJDBChaoViewController *bChao = [[HJDBChaoViewController alloc]init];
    HJDDetailModel *bModel = self.detailModel;
    bChao.BimageModel = bModel;
    [self.navigationController pushViewController:bChao animated:YES];
}


@end
